﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UmlControlLibrary
{
    public class UmlMetadata:Dictionary<string, object>
    {
        public bool Contains(string Name)
        {
            return this.ContainsKey(Name);
        }

        public object Get(string Name)
        {
            if (Contains(Name))
                return this[Name];
            else
                return null;
        }

        public T Get<T>(string Name)
        {
            object o = Get(Name);
            if (o is T)
                return (T)o;
            else
                return default(T);
        }

    }
}
